CT-Codecs
A reimplementation of the base64 and hexadecimal codecs from libsodium and libhydrogen in Rust.
- Constant-time for a given length, suitable for cryptographic purposes
- Strict (base64 strings are not malleable)
- Supports padded and unpadded, original and URL-safe base64 variants
- Supports characters to be ignored by the decoder
- Zero dependencies,
no_std
friendly.
Links:
Example usage
use ;
let encoded = encode_to_string?;
let decoded = decode_to_vec?;